<?php
require_once 'function.php';
require_once 'lang/french.php';
require_once 'header.php';
// db
require_once '../conf/config.php';
require_once '../kernel/db/class_'. $basesql['type'] .'.php';
$db = new db_sql();
$connexion = $db->sql_connect($basesql);

// Action
$error = 0;
if(!@rename('../install', time().'install'.time())) $error++;
if(!@chmod('../conf',0755)) $error++;


echo'<h3>'. $lang['Installation_finie'] .'</h3>
<br />
<br />
<fieldset>
	<legend>'. $lang['Installation_finie'] .'</legend>
	<br />
	<br />
	'. $lang['Texte_fin_installation'] .'
</fieldset>';
if($error > 0)
{
	echo'
	<br />
	<br />
	<fieldset>
		<legend class="legend_install">'. $lang['Erreur'] .'</legend>
		<br />
		<div style="margin: auto; width: 75%;">
			<div class="bad100">
				<div style="float: left;">
					<img src="images/alert.gif" border="0" />
				</div>
				<div>'. $lang['Impossible_modifier_supprimer_install'] .'</div>
				<div style="clear: both;"></div>
		</div>
	</fieldset>';
}
require_once 'footer.php';
?>